package com.vod.yn.service;

import com.vod.yn.dao.VideoCourseDao;
import com.vod.yn.domain.VideoCourse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class VideoService {


    @Autowired
    private VideoCourseDao videoCourseDao;


    public VideoCourse getVideoCourseInfo(Integer id) {

        return videoCourseDao.getVideoCourseInfo(id);
    }


    public Integer addVideoInfo(VideoCourse videoCourse) {
        return videoCourseDao.addVideoCourseInfo(videoCourse);
    }

    public Integer updateVideoInfo(VideoCourse videoCourse) {
        return videoCourseDao.updateVideoCourseInfo(videoCourse);
    }
}
